#pragma once

class KFileReader
{
public:
	KFileReader();
	KFileReader(const char* filename);
	~KFileReader();
	
	bool OpenFile(const char* filename);
	void CloseFile();
	bool IsFileOpen() const;
	
	bool Read(void* pOutData, unsigned int size);
	bool Skip(unsigned int size);
	void ResetRead();
	unsigned int GetFileSize() const;
	
	void* CopyIntoMemory();
	void ReleaseCopyInMemory();
	
private:
	void* mpFileDesc;
};